<?php
/**
 * Created by PhpStorm.
 * User: Duyonggao
 * Date: 2017/12/15 0015
 * Time: 上午 10:11
 * @var $this yii\web\View;
 */
use common\utils\Com;
use yii\web\View;

$js = <<<JS
var h = $(window).height();
$(window).scroll(function(e) {
  var ths = $(this),target = $("#back");
  if(ths.scrollTop() > h){
    target.fadeIn();
  }else {
    target.fadeOut();
  }
});
$("#back").on("click",function() {
  $("body,html").animate({"scrollTop":0},500);
});
JS;
$this->registerJs($js,View::POS_END);
$this->registerCssFile("/css/footer.css?t=".Com::v());
?>
<div id="back"></div>
<div class="footer">
    <div class="item">
        <div>
            <a href="<?=Yii::$app->params['site_m']?>">
                <img src="/img/mobile/wap.png">
                <p>触屏版</p>
            </a>
        </div>
    </div>
    <div class="item">
        <div>
            <a href="<?=Yii::$app->params['site']?>">
            <img src="/img/mobile/web.png">
            <p>电脑版</p>
            </a>
        </div>
    </div>
    <div class="item">
        <div>
            <a href="<?=Com::urlHelp(1)?>">
            <img src="/img/mobile/about.png">
            <p>关于我们</p>
            </a>
        </div>
    </div>
</div>
<p class="copyright">© <?=date("Y")?> 风掠网络 - <?=Yii::$app->params['bei']?></p>
<div id="bottom">
    <div class="item">
        <div>
            <a href="/">
            <img src="/img/mobile/site.png">
            <p>首页</p>
            </a>
        </div>
    </div>
    <div class="item">
        <div>
            <a onclick="window.location.href = 'mqqwpa://im/chat?chat_type=wpa&uin=<?=Yii::$app->params['qq']?>&version=1&src_type=web&web_src=oicqzone.com'" href="javascript:void(0);">
            <img src="/img/mobile/qq.png">
            <p>QQ</p>
            </a>
        </div>
    </div>
    <div class="item">
        <div>
            <a href="sms:<?=Yii::$app->params['phone']?>">
                <img src="/img/mobile/word.png">
                <p>留言</p>
            </a>
        </div>
    </div>
    <div class="item">
        <div>
            <a href="tel:<?=Yii::$app->params['sj']?>">
                <img src="/img/mobile/phone.png">
                <p>联系</p>
            </a>
        </div>
    </div>
</div>
